package top.jamewen.framework.sbmp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;
import top.jamewen.framework.sbmp.common.model.UmsResourceCategory;

import java.util.List;

/**
 * <p>
 * 资源分类表 服务类
 * </p>
 *
 * @author jamewen
 * @since 2021-01-13
 */
public interface UmsResourceCategoryService extends IService<UmsResourceCategory> {

    /**
     * 获取所有资源分类
     */
    List<UmsResourceCategory> listAll();

    /**
     * 创建资源分类
     */
    @Transactional(rollbackFor = Exception.class)
    boolean create(UmsResourceCategory umsResourceCategory);

}
